package com.sanbi.erp.db.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sanbi.erp.db.dao.PlatformMapper;
import com.sanbi.erp.db.domain.Platform;

import java.util.List;

@Service
public class PlatformService{

    @Resource
    private PlatformMapper platformMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return platformMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Platform record) {
        return platformMapper.insert(record);
    }

    
    public int insertSelective(Platform record) {
        return platformMapper.insertSelective(record);
    }

    
    public Platform selectByPrimaryKey(Integer id) {
        return platformMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(Platform record) {
        return platformMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Platform record) {
        return platformMapper.updateByPrimaryKey(record);
    }

    /**
     * 查询平台和店铺
     * @return
     */
    public List<Platform> selectByLink() {
        return platformMapper.selectByLink();
    }
}
